const { createProxyMiddleware: Proxy } = require('http-proxy-middleware')
module.exports = function (app) {
  app.use(Proxy('/api', {
    target: 'http://www.chst.vip',
    pathRewrite: {
      '^/api' : ''
    }
  }))
}